<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich">
	<a4j:outputPanel ajaxRendered="true">
		<rich:extendedDataTable value="#{beanLink.userItems}" var="item"
			id="table" rows="10" reRender="datascroller"
			style="margin-left: auto; margin-right: auto; text-align: center;"
			width="100%">
			<rich:column id="userColumn" label="#{msg.user}" width="30%">
				<f:facet name="header">
					<h:outputText value="#{msg.user}" />
				</f:facet>
				<h:outputText value="#{item.user}" />
			</rich:column>
			<rich:column id="firstNameColumn" label="#{msg.firstName}"
				width="24%">
				<f:facet name="header">
					<h:outputText value="#{msg.firstName}" />
				</f:facet>
				<h:outputText value="#{item.firstName}" />
			</rich:column>
			<rich:column id="lastnameColumn" label="#{msg.lastname}" width="24%">
				<f:facet name="header">
					<h:outputText value="#{msg.lastname}" />
				</f:facet>
				<h:outputText value="#{item.lastName}" />
			</rich:column>
			<rich:column width="22%" id="selecciona" label="#{msg.selecciona}">
				<f:facet name="header">
					<h:outputText value="#{msg.selecciona}" />
				</f:facet>
				<a4j:commandLink ajaxSingle="true" id="linkNewReader"
					action="#{beanLink.newLink}"
					oncomplete="if (#{facesContext.maximumSeverity==null}) #{rich:component('mpLinkReader')}.hide();">
					<h:graphicImage value="/static/images/link_add.ico"
						style="border: 0" />
					<f:setPropertyActionListener value="#{item}"
						target="#{beanLink.currentUser}" />
				</a4j:commandLink>
			</rich:column>
			<f:facet name="footer">
				<rich:datascroller id="datascroller" renderIfSinglePage="false" />
			</f:facet>
		</rich:extendedDataTable>
	</a4j:outputPanel>
</ui:composition>